﻿using System;
using System.Linq;
using System.Linq.Expressions;

namespace Recursos.Model
{
    public interface IRepository<T>
    {
        int Insert(T entity);
        void Delete(int id);
        IQueryable<T> SearchFor(Expression<Func<T, bool>> predicate);
        T SearchOne(Expression<Func<T,bool>> predicate);
        IQueryable<T> GetAll();
        IQueryable<T> GetErased();
        T GetById(int id);
    }
}
